<?php

class Error extends Controller {

    function __construct() {
        parent::__construct();
        echo 'This is an error!';

        $this->view->msg = 'This fnc doesnt exist';

    }

    public function index(){
        $this->view->render('error/index');

    }

}